<?php

include "../service/eventService.php";

if (isset($_GET["id"])) {
    echo $_POST["status1"];
    if ($_POST["status".$_GET["id"]] == 0) {
        updateEventStatus($_GET["id"], 0);
    } else {
        disableEvent($_GET["id"], 1);
    }
    //Header("Location: ../admin/event.php?msg=1");
} else {
    Header("Location: ../admin/event.php");
}
?>